Practice Lab 3.1 – Forms

Scenario

You are a Power Platform functional consultant and have been assigned to the Fabrikam project for the next stage of the project.

In this practice lab, you will be modifying the forms for the Fabrikam Environment model-driven apps.

There are three model-driven apps in the solution:

  • Environmental Administration
  • Environmental Management
  • Environmental Project Delivery

You will be:

  • Modifying columns on the project form
  • Adding the timeline control to the project form
  • Replacing the project outcomes sub-grid
  • Adding the columns you created in the earlier lab to the forms
  • Editing the project quick view form
  • Adding a filter to the contact lookup on Program
  • Adding a quick create form
  • Copying a form
  • Adding the table you created in the earlier lab to an app

Exercise 1 – Edit Project forms

In this exercise, you will make changes to the forms for the Project table.

Task 1.1 – Modify the Project main form

In this task, you will perform the following changes to the form:

  • change the label for project description
  • increase the size of project description field
  • add columns to the form
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select the Project Description field.

  10. In the Properties pane on the right-hand side, change Label to Description

  11. In the Properties pane on the right-hand side, increase Form field height to 4 rows.

  12. Select Table columns on the left-hand side of the form designer.

  13. Drag the Project Code column into the Header area.

  14. Drag the Project Summary column below Program.

  15. Drag the Project Lead column below Region.

  16. Drag the Length of Project column below Scheduled End in the Dates section.

    General tab on project table form.

  17. Select the Funding tab.

  18. Drag the Total Project Funding column above the Project Funding sub-grid.

    Funding tab on project table form.

  19. On the Save and publish drop-down menu, select Save only. Do not navigate away from this page.

Task 1.2 – Add Timeline control to main form

In this task, you will perform the following changes to the form:

  • change tab properties
  • insert the Timeline control
  • restrict the activities available on the Timeline
  1. Select Tree view on the left-hand side of the form designer.

  2. Select the General tab.

  3. In the Properties pane on the right-hand side, select 3 columns in the Layout drop-down.

  4. Select the Program section and drag to the new right-hand column of the General tab.

  5. Select the New section in the right column and select Delete.

  6. Select the New section in the middle column.

  7. Select Components on the left navigation of the form designer.

  8. Expand Display.

  9. Drag the Timeline control to the middle column of the General tab.

  10. Select Tree view on the left side of the form designer, expand General tab, and select the New Section section.

  11. In the Properties pane on the right side, enter Timeline for both Label and Name.

  12. Check the Hide label box.

    Timeline control on project table form.

  13. In the Tree view, select the Note Text control for the Timeline.

  14. In the Properties pane on the right side, select Fax, verify the Enable box is unchecked, and select Cancel.

  15. In the Properties pane on the right side, select Social Activity, uncheck the Enable box, and select Done.

  16. In the Properties pane on the right side, select Date Created in Sort activities by drop-down.

  17. On the Save and publish drop-down menu, select Save only. Do not navigate away from this page.

Task 1.3 – Outcome sub-grid on main form

In this task, you will perform the following changes to the form:

  • replace the sub-grid for the many-to-many relationship between Project and Outcome with a sub-grid for the Project Outcome table
  1. Select the Outcomes tab.

  2. Select the Outcomes SubGrid.

  3. In the properties pane on the right-hand side, select Project Outcomes (Project) in the Table drop-down.

  4. On the Save and publish drop-down menu, select Save only.

  5. Close the form designer.

  6. Select Done.

Task 1.4 – Modify the Project quick view form

In this task, you will perform the following changes to the form:

  • add a sub-grid of Outcomes to the quick view form
  1. Select the Information form where the Form type is Quick View, select the Commands menu (…), and select Edit > Edit in new tab.

  2. Select Table columns on the left-hand side of the form designer.

  3. Drag the Region column below Owner.

  4. Drag the Project Type column below Region.

  5. Select the Project Status column to add it to the form below Project Type.

  6. Select the Owner field.

  7. In the Properties pane on the right side, check the Hide box.

  8. Select Components on the left side of the form designer.

  9. Select the 1-column section control to add it to the form.

  10. In the properties pane on the right-hand side, enter Outcomes for Label and Name.

  11. Expand Grid in the Components pane.

  12. Select Subgrid and check Show related records.

  13. Select Outcomes for Table.

  14. Select Outcomes SubGrid for Default view.

  15. Select Done.

  16. In the Properties pane on the right side, enter Outcomes for Label and OutcomesSG for Name.

  17. Check Hide Label

    Project Quick View form.

  18. On the Save and publish drop-down menu, select Save only.

  19. Close the form designer.

  20. Select Done.

Exercise 2 – Edit Program form

In this exercise, you will add filtering on a lookup field on the Program table form.

Task 2.1 – Add filtering to lookup

In this task, you will perform the following changes to the form:

  • add a filter to the Contact lookup to only show Contacts that belong to the selected Account
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, click and expand Tables.

  6. Select the Program table.

  7. Under Data experiences, click on Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select the Sponsor Main Contact field.

  10. In the Properties pane on the right-hand side, expand Filtering.

  11. Check the Filter by related rows box.

  12. Select Sponsor (Programs) for Relationship to current table.

  13. Select Company Name (Contacts) for Relationship to this lookup’s table.

    Program main form filtering.

  14. On the Save and publish drop-down menu, select Save only.

  15. Close the form designer.

  16. Select Done.

Exercise 3 – Edit Project Funding form

In this exercise, you will add new columns to the Project Funding table main form and add the form control to allow editing of the account record.

Task 3.1 – Add columns to form

In this task, you will perform the following changes to the form:

  • add columns to the form
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Funding table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select Table columns on the left-hand side of the form designer.

  10. Drag the Currency column below Funding Percentage.

  11. Select the Funding amount column to add to the form below Currency.

    Project Funding main form.

  12. On the Save and publish drop-down menu, select Save only.

  13. Close the form designer.

  14. Select Done.

Task 3.2 – Add form control

In this task, you will perform the following changes to the form:

  • add form component to embed the account form
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Funding table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select Tree view on the left-hand side of the form designer.

  10. Select the General tab.

  11. In the Properties pane on the right-hand side, select 2 columns in the Layout drop-down.

  12. Select Components on the left navigation of the form designer.

  13. Expand Display.

  14. Drag the Form control to the right-hand column of the General tab.

  15. Select Funder for Lookup column.

  16. Select Account main form for Environmental for Related Form.

  17. Select Done.

  18. Select the New Section

  19. Check the Hide label box.

    Project Funding main form with form control.

  20. On the Save and publish drop-down menu, select Save only.

  21. Close the form designer.

  22. Select Done.

Exercise 4 – Edit Region form

In this exercise, you will add the hierarchical relationship to the Region table form.

Task 4.1 – Add parent lookup and child sub-grid to the form

In this task, you will perform the following changes to the form:

  • add parent region lookup
  • add a sub-grid for child regions
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Region table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select Table columns on the left navigation of the form designer.

  10. Drag the Parent Region column below Region Name.

  11. Select Components on the left navigation of the form designer.

  12. Select the 1-column section control to add it to the form.

  13. In the Properties pane on the right side, enter Sub Regions for Label and ChildRegions for Name.

  14. Expand Grid in the Components pane.

  15. Select Subgrid and check Show related records.

  16. Select Regions (Parent Region) for Table.

  17. Select Done.

  18. In the Properties pane on the right side, enter Sub Regions for Label and ChildRegionsSG for Name.

  19. Check the Hide label box.

    Region main form.

  20. On the Save and publish drop-down menu, select Save only.

  21. Close the form designer.

  22. Select Done.

Exercise 5 – Project Resource Quick Create form

In this exercise, you will create a Quick Create form for the Project Resource table form.

Task 5.1 – Enable Quick Create form

In this task, you will enable the Project Resource table for quick create.

  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Resource table.

  7. Under Table Properties, select Properties.

  8. In the Edit table pane on the right side of the screen, expand Advanced options and scroll down.

  9. Check the Leverage quick-create form if available box.

  10. Select Save.

Task 5.2 – Create Quick Create form

In this task, you will create a quick create form.

  1. In the Project Resource table, under Data experiences, select Forms.

  2. Select + New form > + Quick Create Form.

  3. Drag the Project column to add to the form in the first section.

  4. Drag the Resource column to add to the form in the first section.

  5. Drag the Project Role column to add to the form in the second section.

  6. Drag the Start column to add to the form in the third section.

  7. Drag the End column to add to the form in the third section.

  8. Select the first section, and in the properties pane click Hide label.

  9. Select the second section, and in the properties pane click Hide label.

  10. Select the third section, and in the properties pane click Hide label.

    Project Resource Quick Create form.

  11. On the Save and publish drop-down menu, select Save only.

  12. Select 🡠 Back.

Exercise 6 – Edit Milestone form

In this exercise, you will add the status choice column to the Milestone table form.

Task 6.1 – Add columns to the form

In this task, you will perform the following changes to the form:

  • add Milestone status to the form
  • remove Status reason from the form
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Milestone table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Drag the Milestone Status column below the Status Reason field.

  10. Select the Status Reason field and select Delete.

    Milestone main form.

  11. On the Save and publish drop-down menu, select Save only.

  12. Close the form designer.

  13. Select Done.

Exercise 7 – Edit Outcome form

In this exercise, you will add the status choice column to the Outcome table form.

Task 7.1 – Add columns to the form

In this task, you will perform the following changes to the Outcome form:

  • add Outcome status to the form
  • remove Status reason from the form
  • delete the Project tab
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Outcome table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Drag the Outcome Status column below the Status Reason field.

  10. Select the Status Reason field and select Delete.

  11. Select the Projects tab and select the Delete icon.

    Outcome main form.

  12. On the Save and publish drop-down menu, select Save only.

  13. Close the form designer.

  14. Select Done.

Exercise 8 – Edit Project Outcome form

In this exercise, you will configure the default form for the Project Outcome table.

Task 8.1 – Configure main form

In this task, you will perform the following changes to the Project Outcome form:

  • change form layout
  • add columns to the form
  • hide the name on the form
  • Add a quick view form
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Outcome table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Drag the Owner field from the body into the Header.

  10. Select Tree view on the left side of the form designer.

  11. Select the General tab.

  12. In the Properties pane on the right side, enter General for Name

  13. Under Formatting, in the Layout drop-down, select 2 columns.

  14. Select the New Section section.

  15. In the properties pane on the right-hand side, enter Related for Label and Name.

  16. Select Table columns on the left-hand side of the form designer.

  17. Drag the Project column below the Title field.

  18. Select the Outcome column to add to the form below Project.

  19. Select the Comments column to add to the form below Outcome.

  20. Select the Outcome Completed Date column to add to the form below Comments.

  21. Select the Stakeholders Notified column to add to the form below Outcome completed date.

  22. Select the Title field.

  23. In the Properties pane on the right side, check Hide.

  24. Select the Related section.

  25. Select Components on the left side of the form designer, and expand Display.

  26. Select the Quick view control.

  27. In the Select Quick view forms pop-up, select Project for Lookup.

  28. Select Information for Project.

  29. Select Done.

    Project Outcome main form.

  30. Select the Related section.

  31. Check Hide label.

  32. On the Save and publish drop-down menu, select Save only.

  33. Close the form designer.

  34. Select Done.

Exercise 9 – Copy Outcome form

In this exercise, you will be copying a form and implementing security on forms.

Task 9.1 – Copy Outcome form

In this task, you will perform the following changes to the form:

  • Rename the main form
  • Copy the main form to allow managers to view and edit columns
  • Associate security roles with the forms
  • Set the form order
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Outcome table.

  7. Under Data experiences, select Forms.

  8. Select the Information form where the Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. In the Properties pane on the right side, enter User for Display Name.

  10. On the Save and publish drop-down menu, select Save only.

  11. Select Save a copy.

  12. Enter Manager for Display Name and Form for managers for Description and select Save.

  13. Select Tree view on the left side of the form designer.

  14. Select the General tab.

  15. In the properties pane on the right-hand side, enter General for Name

  16. Under Formatting, in the Layout drop-down, select 2 columns.

  17. Select the New Section section.

  18. In the Properties pane on the right side, enter Details for Label and Name.

  19. Select Table columns on the left navigation of the form designer.

  20. Drag the Goal column to the Details section.

  21. Select Approver to add to the Details section.

  22. Select Approver Email to add to the Details section.

  23. Select Approved to add to the Details section.

  24. Select Target Aim to add to the Details section.

  25. Select Stakeholders identified to add to the Details section.

  26. Click on Tasks created to add to the Details section.

  27. Click on Tasks assigned to add to the Details section.

  28. Click on Tasks completed to add to the Details section.

  29. Click on Environmental impact assessment completed to add to the Details section.

  30. Select the Details section.

  31. Check Hide label.

    Manager Outcome main form.

  32. On the Save and publish drop-down menu, select Save only.

  33. Select Form settings.

  34. Select the Environmental manager and Environmental administrator roles as the specific security roles that should have access to this form.

    Form Settings roles.

  35. Select the Form order tab.

  36. Drag Manager above User.

    Form Settings form order.

  37. Select the Fallback forms tab.

  38. Uncheck Enable Manager form as a Fallback form.

    Form Settings fallback.

  39. Select Save and publish.

  40. Close the form designer.

  41. Select Done.

  42. Select the User form.

  43. Select Form settings from the command bar.

  44. Select the Specific security roles radio button.

  45. Select the Environmental user role.

  46. Select Save and publish.

Task 9.2 – Publish changes

  1. In the Objects pane on the left, select All.

  2. Select Publish all customizations.

Exercise 10 – Modify model-driven apps

In this exercise, you will be adding the tables and forms to the Fabrikam model-driven apps.

Task 10.1 – Environmental Management app

In this task, you will perform the following changes to the app:

  • Add Project Outcome table
  • Use the Manager form
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, select Apps.

  6. Select the Environmental Management app, select the Commands menu (…), and select Edit > Edit in new tab.

  7. Select + New.

  8. Select Dataverse table.

  9. Search for and select Project Outcome.

  10. Uncheck Show in navigation.

  11. Select Add.

  12. Select + New.

  13. Select Dataverse table.

  14. Search for and select Outcome.

  15. Uncheck Show in navigation.

  16. Select Add.

  17. In the Pages pane on the left side, select Outcome forms under All other pages.

  18. In the Outcome forms pane on the right side, select the ellipsis for the User form and select Remove

    App designer.

  19. Select Save.

  20. Select Publish.

  21. Select Play.

  22. Navigate around and interact with the Environmental Management app before closing the app and app designer windows.

  23. Close the app designer window.

  24. Select Done.

Task 10.2 – Environmental Project Delivery app

In this task, you will perform the following changes to the app:

  • Add Project Outcome table
  • Use the User form
  1. Select the Environmental Project Delivery app, select the Commands menu (…), and select Edit > Edit in new tab.

  2. Select + New.

  3. Select Dataverse table.

  4. Search for and select Project Outcome.

  5. Uncheck Show in navigation.

  6. Select Add.

  7. In the Pages pane on the left side, select Outcomes form.

  8. In the Outcomes forms pane on the right side, select the ellipsis menu on the Manager form and select Remove.

  9. Select Save.

  10. Select Publish.

  11. Select Play.

  12. Navigate around and interact with the Environmental Project Delivery app and then Close the app and app designer windows.

  13. Select Done.